package com.woniuxy.oldmanapi.mapper;

import com.woniuxy.oldmanapi.entity.Storey;
import com.woniuxy.oldmanapi.xvo.StoreyDyaVo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

import java.util.List;

import java.util.List;

@Repository
public interface StoreyMapper extends Mapper<Storey> {
    List<StoreyDyaVo> selectBedDyaVoByBuid(int buildingId);

    List<StoreyDyaVo> searchStoreyByState0(int buildingId);

    List<StoreyDyaVo> searchStoreyByState1(int buildingId);
    @Select("select * from storey where building_id = #{id}")
    List<Storey> selectById(int id);
    @Select("select count(*) from storey where building_id = #{id}")
    int selectNum(int id);
    List<Storey> selectByBuildIdYSW(Integer buildingId);

}